﻿@model WebApp.Models.S_dict

@{
    Layout = "~/Views/Shared/_DialogLayout.cshtml";
}
@using (Html.BeginForm("", "", FormMethod.Post, new { @class = "form-horizontal form-inline", id = "inputform" }))
{
    <div class="dialog-content">
        @Html.AntiForgeryToken()
        @Html.ValidationSummary(true, "", new { @class = "text-danger" })

        <input type="hidden" id="Id" value="@Model.Id" />
        <input type="hidden" value="@(Model.Updatetime.HasValue ? Model.Updatetime.Value.ToString("yyyy-MM-dd HH:mm:ss.fff") : "")" class="form-control datafield" data-fieldname="Updatetime" />

        <div class="row">
            <div class="col-xs-12 nopadding">
                <div class="widget-box">
                    <div class="widget-title">
                        <h5>字典信息</h5>
                    </div>
                    <div class="widget-content">
                        <table cellpadding="3" cellspacing="0" border="0" class="inputform">
                            <tr>
                                <td class="td-label"><label for="Typecode">字典分类</label></td>
                                <td class="td-control">@Html.DropDownList("Typecode", ViewBag.DicttypeList as SelectList, "", new { @class = "form-control datafield", @data_fieldname = "Typecode", style = "width:200px" })</td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Sort">顺序</label></td>
                                <td class="td-control">@Html.TextBox("Sort", Model.Sort, new { @class = "form-control datafield", @data_fieldname = "Sort", style = "width:200px" })</td>
                            </tr>
                            <tr style="display:none;">
                                <td class="td-label"><label for="Islocked">停用</label></td>
                                <td class="td-control">
                                    @Html.CheckBox("Islocked", Model.Isdeleted == "1", new { @class = "checkbox", @data_fieldname = "Isdeleted" })
                                </td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Code">字典编码</label></td>
                                <td class="td-control">@Html.TextBox("Code", Model.Code, new { @class = "form-control datafield", @data_fieldname = "Code", style="width:200px" })</td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Name_cn">名称(简体)</label></td>
                                <td class="td-control">@Html.TextBox("Name_cn", Model.Name_cn, new { @class = "form-control datafield", @data_fieldname = "Name_cn", style = "width:200px" })</td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Name_cn">名称(繁体)</label></td>
                                <td class="td-control">@Html.TextBox("Name_hk", Model.Name_hk, new { @class = "form-control datafield", @data_fieldname = "Name_hk", style = "width:200px" })</td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Name_en">名称(英文)</label></td>
                                <td class="td-control">@Html.TextBox("Name_en", Model.Name_en, new { @class = "form-control datafield", @data_fieldname = "Name_en", style = "width:200px" })</td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Value1">Value1</label></td>
                                <td class="td-control" colspan="3">@Html.TextArea("Value1", Model.Value1, new { @class = "form-control datafield", @data_fieldname = "Value1", style = "width:300px;height:40px;" })</td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Value2">Value2</label></td>
                                <td class="td-control" colspan="3">@Html.TextArea("Value2", Model.Value2, new { @class = "form-control datafield", @data_fieldname = "Value2", style = "width:300px;height:40px;" })</td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Value3">Value3</label></td>
                                <td class="td-control" colspan="3">@Html.TextArea("Value3", Model.Value3, new { @class = "form-control datafield", @data_fieldname = "Value3", style = "width:300px;height:40px;" })</td>
                            </tr>
                            <tr>
                                <td class="td-label"><label for="Remark">备注</label></td>
                                <td class="td-control" colspan="3">@Html.TextArea("Remark", Model.Remark, new { @class = "form-control datafield", @data_fieldname = "Remark", style = "width:300px;height:40px;" })</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="dialog-footer">
        <button id="btncancel" class="btn btn-small btn-default">取消</button>
        <button id="btnsave" class="btn btn-small btn-primary">保存</button>
    </div>
}

@section scripts{
    <script type="text/javascript">
    @*<!--var medicationProductJson = @Html.Raw(ViewBag.MedicationProductJson);-->*@
    </script>
    <script type="text/javascript" src="~/Scripts/app/manage/dict.edit.js?ver=@WebApp.BLL.CommonStr.Ver"></script>
    <script type="text/javascript" src="~/Scripts/lang_zh_cn2hk.js?ver=@WebApp.BLL.CommonStr.Ver"></script>
}

